package com.gaohe.web.controller.dcp;

import com.gaohe.dcp.domain.dto.ResDTO;
import com.gaohe.dcp.domain.dto.result.Result;
import com.gaohe.dcp.service.dcpTestService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;

@CrossOrigin
@RestController
@RequestMapping("/dcpTest")
public class dcpTestController {

    @Resource
    private dcpTestService dcpTestService;

    @PostMapping
    public Result test(@RequestBody ResDTO resDTO) throws IOException {
        System.out.println(resDTO.toString());
        return dcpTestService.exec(resDTO);
    }
}
